#include "StdAfx.h"
#include "Clipboard.h"

boost::signal<void(const std::string&)> CA::Clipboard::OnSetData;
boost::signal<std::string()> CA::Clipboard::OnGetData;
void CA::Clipboard::SetData(const std::string& content)
{
	OnSetData(content);
}

std::string CA::Clipboard::GetData()
{
	static std::string empty;
	
	if(OnGetData.empty())return empty;
	else return OnGetData();
}